<?php
namespace BP\Sys;

use BP\En\EntityNoName;

require_once("BP/Web/WebUser.php");
require_once("BP/En/Map.php");
class ToolbarExcel extends EntityNoName {
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->IsDelete =  FALSE ;
		$uac->IsInsert =  FALSE ;
		$uac->IsView =  FALSE ;
		if ($WebUser->getNo()->equals("admin"))
		{
			$uac->IsUpdate =  TRUE ;
			$uac->IsView =  TRUE ;
		}
		return $uac;
	}
	public function getOfficeOpenLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeOpenLab);
	}
	public function setOfficeOpenLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOpenLab, $value);
	}
	public function getOfficeOpenEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeOpenEnable);
	}
	public function setOfficeOpenEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOpenEnable, $value);
	}
	public function getOfficeOpenTemplateLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeOpenTemplateLab);
	}
	public function setOfficeOpenTemplateLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOpenTemplateLab, $value);
	}
	public function getOfficeOpenTemplateEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeOpenTemplateEnable);
	}
	public function setOfficeOpenTemplateEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOpenTemplateEnable, $value);
	}
	public function getOfficeSaveLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeSaveLab);
	}
	public function setOfficeSaveLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeSaveLab, $value);
	}
	public function getOfficeSaveEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeSaveEnable);
	}
	public function setOfficeSaveEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeSaveEnable, $value);
	}
	public function getOfficeAcceptLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeAcceptLab);
	}
	public function setOfficeAcceptLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeAcceptLab, $value);
	}
	public function getOfficeAcceptEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeAcceptEnable);
	}
	public function setOfficeAcceptEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeAcceptEnable, $value);
	}
	public function getOfficeRefuseLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeRefuseLab);
	}
	public function setOfficeRefuseLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeRefuseLab, $value);
	}
	public function getOfficeRefuseEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeRefuseEnable);
	}
	public function setOfficeRefuseEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeRefuseEnable, $value);
	}
	public function getOfficeOverLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeOverLab);
	}
	public function setOfficeOverLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOverLab, $value);
	}
	public function getOfficeOverEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeOverEnable);
	}
	public function setOfficeOverEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeOverEnable, $value);
	}
	public function getOfficeMarksEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeMarksEnable);
	}
	public function setOfficeMarksEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeMarksEnable, $value);
	}
	public function getOfficePrintLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficePrintLab);
	}
	public function setOfficePrintLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficePrintLab, $value);
	}
	public function getOfficePrintEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficePrintEnable);
	}
	public function setOfficePrintEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficePrintEnable, $value);
	}
	public function getOfficeSealLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeSealLab);
	}
	public function setOfficeSealLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeSealLab, $value);
	}
	public function getOfficeSealEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeSealEnable);
	}
	public function setOfficeSealEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeSealEnable, $value);
	}
	public function getOfficeInsertFlowLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeInsertFlowLab);
	}
	public function setOfficeInsertFlowLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeInsertFlowLab, $value);
	}
	public function getOfficeInsertFlowEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeInsertFlowEnable);
	}
	public function setOfficeInsertFlowEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeInsertFlowEnable, $value);
	}
	public function getOfficeNodeInfo () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeNodeInfo);
	}
	public function setOfficeNodeInfo ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeNodeInfo, $value);
	}
	public function getOfficeReSavePDF () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeReSavePDF);
	}
	public function setOfficeReSavePDF ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeReSavePDF, $value);
	}
	public function getOfficeIsMarks () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeIsMarks);
	}
	public function setOfficeIsMarks ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeIsMarks, $value);
	}
	public function getOfficeTemplate () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeTemplate);
	}
	public function setOfficeTemplate ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeTemplate, $value);
	}
	public function getOfficeIsParent () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeIsParent);
	}
	public function setOfficeIsParent ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeIsParent, $value);
	}
	public function getOfficeDownLab () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeDownLab);
	}
	public function setOfficeDownLab ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeDownLab, $value);
	}
	public function getOfficeDownEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeDownEnable);
	}
	public function setOfficeDownEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeDownEnable, $value);
	}
	public function getOfficeTHEnable () 
	{
		return $this->GetValBooleanByKey(ToolbarExcelAttr::$OfficeTHEnable);
	}
	public function setOfficeTHEnable ($value) // [boolean value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeTHEnable, $value);
	}
	public function getOfficeTHTemplate () 
	{
		return $this->GetValStringByKey(ToolbarExcelAttr::$OfficeTHTemplate);
	}
	public function setOfficeTHTemplate ($value) // [String value]
	{
		$this->SetValByKey(ToolbarExcelAttr::$OfficeTHTemplate, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->setNo($no);
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_MapData", "ToolbarExcel功能控制");
		$map->Java_SetDepositaryOfEntity($Depositary->Application);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->AddTBStringPK(MapDataAttr::$No, NULL, "表单编号",  TRUE ,  FALSE , 1, 200, 20);
		$map->AddTBString(MapDataAttr::$Name, NULL, "表单名称",  TRUE ,  FALSE , 0, 500, 20);
		$map->AddTBString(ToolbarExcelAttr::$OfficeOpenLab, "打开本地", "打开本地标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeOpenEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeOpenTemplateLab, "打开模板", "打开模板标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeOpenTemplateEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeSaveLab, "保存", "保存标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeSaveEnable,  TRUE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeAcceptLab, "接受修订", "接受修订标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeAcceptEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeRefuseLab, "拒绝修订", "拒绝修订标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeRefuseEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeOverLab, "套红按钮", "套红按钮标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeOverEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddBoolean(ToolbarExcelAttr::$OfficeMarksEnable,  TRUE , "是否查看用户留痕",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficePrintLab, "打印按钮", "打印按钮标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficePrintEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeSealLab, "签章按钮", "签章按钮标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeSealEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeInsertFlowLab, "插入流程", "插入流程标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeInsertFlowEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddBoolean(ToolbarExcelAttr::$OfficeNodeInfo,  FALSE , "是否记录节点信息",  TRUE ,  TRUE );
		$map->AddBoolean(ToolbarExcelAttr::$OfficeReSavePDF,  FALSE , "是否该自动保存为PDF",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeDownLab, "下载", "下载按钮标签",  TRUE ,  FALSE , 0, 50, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeDownEnable,  FALSE , "是否启用",  TRUE ,  TRUE );
		$map->AddBoolean(ToolbarExcelAttr::$OfficeIsMarks,  TRUE , "是否进入留痕模式",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeTemplate, "", "指定文档模板",  TRUE ,  FALSE , 0, 100, 10);
		$map->AddBoolean(ToolbarExcelAttr::$OfficeIsParent,  TRUE , "是否使用父流程的文档",  TRUE ,  TRUE );
		$map->AddBoolean(ToolbarExcelAttr::$OfficeTHEnable,  FALSE , "是否自动套红",  TRUE ,  TRUE );
		$map->AddTBString(ToolbarExcelAttr::$OfficeTHTemplate, "", "自动套红模板",  TRUE ,  FALSE , 0, 200, 10);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
